package com.youbo.cloudmall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author youbo
 * @version 1.0
 * @date 2021/10/12 19:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//二级分类VO
public class Catelog2Vo implements Serializable {
    private String catalog1Id;  //1级父分类ID
    private List<Catelog3Vo> catalog3List; //3级子分类集合
    private String id; //id
    private String name; //名字



    //三级分类VO
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catelog3Vo implements Serializable{
        private String catalog2Id;
        private String id;
        private String name;
    }
}
